/**
 * 
 */
package org.crosswalkproject.iflytek.ise.result;

import org.crosswalkproject.iflytek.ise.result.util.ResultFormatUtil;

/**
 * <p>Title: ReadWordResult</p>
 * <p>Description: </p>
 * <p>Company: www.iflytek.com</p>
 * @author iflytek
 * @date 2015骞�1鏈�12鏃� 涓嬪崍5:03:50
 */
public class ReadWordResult extends Result {
	
	public ReadWordResult() {
		category = "read_word";
	}
	
	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		
		if ("cn".equals(language)) {
			buffer.append("[鎬讳綋缁撴灉]\n")
				.append("璇勬祴鍐呭锛�" + content + "\n")
				.append("鏈楄鏃堕暱锛�" + time_len + "\n")
				.append("鎬诲垎锛�" + total_score + "\n\n")
				.append("[鏈楄璇︽儏]")
				.append(ResultFormatUtil.formatDetails_CN(sentences));
		} else {
			if (is_rejected) {
				buffer.append("妫�娴嬪埌涔辫锛�")
				.append("except_info:" + except_info + "\n\n");	// except_info浠ｇ爜璇存槑璇﹁銆婅闊宠瘎娴嬪弬鏁般�佺粨鏋滆鏄庢枃妗ｃ��
			}
			
			buffer.append("[鎬讳綋缁撴灉]\n")
				.append("璇勬祴鍐呭锛�" + content + "\n")
				.append("鎬诲垎锛�" + total_score + "\n\n")
				.append("[鏈楄璇︽儏]")
				.append(ResultFormatUtil.formatDetails_EN(sentences));
		}
		
		return buffer.toString();
	}
}
